package com.huawei.appgallery.apkmanagement.impl.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import o.bbl.b;
import o.bbl.e;

public class ApkManagementFooterView extends LinearLayout {
    private View ˊ;
    private TextView ˎ;

    public ApkManagementFooterView(Context context) {
        super(context);
        ˏ(context);
    }

    public ApkManagementFooterView(Context context, @Nullable AttributeSet attributeSet) {
        super(context, attributeSet);
        ˏ(context);
    }

    public ApkManagementFooterView(Context context, @Nullable AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        ˏ(context);
    }

    private void ˏ(Context context) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.gravity = 16;
        this.ˊ = LayoutInflater.from(context).inflate(e.ˏ, null);
        this.ˎ = (TextView) this.ˊ.findViewById(b.ˊˊ);
        addView(this.ˊ, layoutParams);
    }

    public void setmSubPrompt(String str) {
        if (str != null && this.ˎ != null) {
            this.ˎ.setText(str);
        }
    }

    public void setShowFootView(boolean z) {
        if (this.ˊ != null) {
            this.ˊ.setVisibility(z ? 0 : 8);
        }
    }
}
